package com.dgut.dao;

import com.dgut.domain.Account;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;


public interface IAccountDao {

    @Select("select * from account where id = #{id}")
    public Account findAccountById(Integer id);

    @Select("select * from account where name = #{name}")
    public Account findAccountByName(String name);

    @Update("update account set money = #{money} where id = #{id}")
    public void updateAccount(Account account);

}
